package ooday05;

public class StaticFinalDemo {
    public static void main(String[] args) {

        System.out.println(Loo.PI);
        //Loo.PI=3.14;不能改变
        System.out.println(Loo.num);
        //
        System.out.println(Loo.NUM);
        //编译的时候直接将常量转换成具体的数
    }
}

class Loo{
    public static final int NUM=5;
    public static int num=5;

    public static final double PI=3.1415926;//必须声明同时初始化
}


